<?php
$nav = new \Core\Myapp\Helper\Admin\Navigation;
$nav->init();
$roots = $nav->getRootItems();
?>
<div id="main-nav" class="top-bar">
    <ul>
        <?php foreach($roots as $value) : ?>
            <li class="root nav-item" id="<?php echo $value['id'];?>">
                <a href="<?php echo $value['url'];?>"><span><?php echo $value['title'];?></span></a>
                <?php echo $nav->getHtmlSubMenu($value['id']);?>
            </li>
        <?php endforeach;?>
    </ul>
    <div class="clear"></div>
</div>